#!/usr/bin/env python
from Engine.NonPhysics_object import NonPhysics_object

class Spikes(NonPhysics_object):
    def __init__(self, level, il, x, y):
        self.init(level, x, y, il.spikes, (0, 16, 32, 16))
        self.gravity = 0
        self.hspeed = 0
        self.vspeed = 0
        self.dammage = 100
    
    def collision_other(self, other):
        other.hit(self.dammage, (self.rect[0], self.rect[1]))
    
    def get_new_instance(self, level, il):
        return Spikes(level, il, 0, 0)